package com.bjsxt.service.impl;

import com.bjsxt.mapper.PlannerMapper;
import com.bjsxt.pojo.PageA;
import com.bjsxt.pojo.Planner;
import com.bjsxt.service.PlannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PlannerServiceImpl implements PlannerService {
    @Autowired
    private PlannerMapper plannerMapper;
    @Override
    public PageA<Planner> findPlanners(Integer cid) {
        List<Planner> planners = plannerMapper.selectPlanners(cid);
        PageA<Planner> pg =new PageA<>();
        pg.setRows(planners);
        return pg;
    }
}
